﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Users_Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%=this.UI_Head() %>
    <link href="../Css/Register_page.css" rel="Stylesheet" type="text/css" />
    <script language="javascript" src="../Script/jquery.js"></script>
    <script>

        function clearform() {
            document.loginForm.Txt_UserName.value = "";
            document.loginForm.CheckCode.value = "";
            document.loginForm.Txt_Pwd.value = "";
        }
        function LoginFormCheck() {
            var U = $("#Txt_UserName").val();
            var P = $("#Txt_Pwd").val();
            var Code = $("#CheckCode").val(); 
            if (U == "") {
              
                alert("请输入登录用户名!");
                $("#Txt_UserName").focus();
                return false;
            }
            if (P == "") {
                alert("请输入登录密码!");
                $("#Txt_Pwd").focus();
                return false;
            }
            if (Code == "") {
                alert("请输入登录验证码!");
                $("#CheckCode").focus();
                return false;
            }
        }
        
        
    
    </script>

</head>
<body>
    <%=this.UI_TopControl(false)%>
    <div class="topbanner bodyList">
        <form runat="server" id="loginForm">
        <div class="body_995">
            <div class="Login_bg">
                <div class="inputbox">
                    <ul>
                        <li class="loginInputLi1">
                            <asp:TextBox ID="Txt_UserName" runat="server"></asp:TextBox>
                        </li>
                        <li class=" loginInputLi1 loginInputLi2"><asp:TextBox TextMode="Password" ID="Txt_Pwd" runat="server"></asp:TextBox></li>
                        <li class="loginInputLi2 loginInputLi3">
                            <asp:TextBox ID="CheckCode" runat="server" 
                                MaxLength="6" Width="70px"></asp:TextBox></li>
                        <li class="loginInputLi4 loginInputLi2"><img src="../CheckCode.aspx" id="UservaliCode" alt="验证码"   align="absmiddle" width="80" height="25" onclick="javascript:document.getElementById('UservaliCode').src='../CheckCode.Aspx?id='+Math.random();return false; " style="cursor:pointer;" /></li>
                        <li class="loginInputLi5 loginInputLi2">
                            <asp:DropDownList ID="CookExp" runat="server" CssClass="select1" >
                                <asp:ListItem Value="0">不保存</asp:ListItem>
                                <asp:ListItem Value="1">保存一天</asp:ListItem>
                                <asp:ListItem Value="30">保存一月</asp:ListItem>
                                <asp:ListItem Value="365">保存一年</asp:ListItem>
                                
                            </asp:DropDownList>
                        </li>
                    </ul>
                    </div>
                 <div class="inputbox2">
                    <div class="loginPage_Reg"><a href="Register.aspx">新用户注册</a> <span style="color:Red;">|</span> <a href="">忘记密码</a></div><div class="login_Btn_Reset">
                        <asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/dl.gif" runat="server"  
                            onclick="ImageButton1_Click" OnClientClick="return LoginFormCheck()" />&nbsp;&nbsp;&nbsp;&nbsp;
                    <img src="../images/cz.gif" onclick="clearform()" width="87" height="27" style="cursor: hand;">
                    </div>
                    
                    </div>
            </div>
        </div>
        </form>
    </div>
    <%=this.UI_boot(false,true,false) %>
</body>
</html>
